package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallItemcats;

import java.util.*;
public class MallItemcatsExample extends SgExample<MallItemcatsExample.Criteria> {
    public static final Class<MallItemcats> beanClass = MallItemcats.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn imgUrl;
    public static EntityColumn parentCid;
    public static EntityColumn createTime;
    public static EntityColumn catName;
    public static EntityColumn sortOrder;
    public static EntityColumn cid;
    public static EntityColumn status;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        imgUrl = listMap.get("imgUrl");
        parentCid = listMap.get("parentCid");
        createTime = listMap.get("createTime");
        catName = listMap.get("catName");
        sortOrder = listMap.get("sortOrder");
        cid = listMap.get("cid");
        status = listMap.get("status");
        }

    public MallItemcatsExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallItemcatsExample.Criteria createCriteriaInternal() {
        return new MallItemcatsExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallItemcatsExample.Criteria andImgUrlIsNull() {
            return isNull(imgUrl);
        }

        public MallItemcatsExample.Criteria andImgUrlIsNotNull() {
            return isNotNull(imgUrl);
        }

        public MallItemcatsExample.Criteria andImgUrlEqualTo(String value) {
            return equalTo(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlNotEqualTo(String value) {
            return notEqualTo(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlGreaterThan(String value) {
            return greaterThan(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlLessThan(String value) {
            return lessThan(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlLike(String value) {
            return like(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlNotLike(String value) {
            return notLike(imgUrl, value);
        }

        public MallItemcatsExample.Criteria andImgUrlIn(List<String> values) {
            return in(imgUrl, values);
        }

        public MallItemcatsExample.Criteria andImgUrlNotIn(List<String> values) {
            return notIn(imgUrl, values);
        }

        public MallItemcatsExample.Criteria andImgUrlBetween(String value1, String value2) {
            return between(imgUrl, value1, value2);
        }

        public MallItemcatsExample.Criteria andImgUrlNotBetween(String value1, String value2) {
            return notBetween(imgUrl, value1, value2);
        }
        public MallItemcatsExample.Criteria andParentCidIsNull() {
            return isNull(parentCid);
        }

        public MallItemcatsExample.Criteria andParentCidIsNotNull() {
            return isNotNull(parentCid);
        }

        public MallItemcatsExample.Criteria andParentCidEqualTo(Long value) {
            return equalTo(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidNotEqualTo(Long value) {
            return notEqualTo(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidGreaterThan(Long value) {
            return greaterThan(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidLessThan(Long value) {
            return lessThan(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(parentCid, value);
        }

        public MallItemcatsExample.Criteria andParentCidIn(List<Long> values) {
            return in(parentCid, values);
        }

        public MallItemcatsExample.Criteria andParentCidNotIn(List<Long> values) {
            return notIn(parentCid, values);
        }

        public MallItemcatsExample.Criteria andParentCidBetween(Long value1, Long value2) {
            return between(parentCid, value1, value2);
        }

        public MallItemcatsExample.Criteria andParentCidNotBetween(Long value1, Long value2) {
            return notBetween(parentCid, value1, value2);
        }
        public MallItemcatsExample.Criteria andCreateTimeIsNull() {
            return isNull(createTime);
        }

        public MallItemcatsExample.Criteria andCreateTimeIsNotNull() {
            return isNotNull(createTime);
        }

        public MallItemcatsExample.Criteria andCreateTimeEqualTo(Date value) {
            return equalTo(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeNotEqualTo(Date value) {
            return notEqualTo(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeGreaterThan(Date value) {
            return greaterThan(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            return greaterThanOrEqualTo(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeLessThan(Date value) {
            return lessThan(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            return lessThanOrEqualTo(createTime, value);
        }

        public MallItemcatsExample.Criteria andCreateTimeIn(List<Date> values) {
            return in(createTime, values);
        }

        public MallItemcatsExample.Criteria andCreateTimeNotIn(List<Date> values) {
            return notIn(createTime, values);
        }

        public MallItemcatsExample.Criteria andCreateTimeBetween(Date value1, Date value2) {
            return between(createTime, value1, value2);
        }

        public MallItemcatsExample.Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            return notBetween(createTime, value1, value2);
        }
        public MallItemcatsExample.Criteria andCatNameIsNull() {
            return isNull(catName);
        }

        public MallItemcatsExample.Criteria andCatNameIsNotNull() {
            return isNotNull(catName);
        }

        public MallItemcatsExample.Criteria andCatNameEqualTo(String value) {
            return equalTo(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameNotEqualTo(String value) {
            return notEqualTo(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameGreaterThan(String value) {
            return greaterThan(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameLessThan(String value) {
            return lessThan(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameLike(String value) {
            return like(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameNotLike(String value) {
            return notLike(catName, value);
        }

        public MallItemcatsExample.Criteria andCatNameIn(List<String> values) {
            return in(catName, values);
        }

        public MallItemcatsExample.Criteria andCatNameNotIn(List<String> values) {
            return notIn(catName, values);
        }

        public MallItemcatsExample.Criteria andCatNameBetween(String value1, String value2) {
            return between(catName, value1, value2);
        }

        public MallItemcatsExample.Criteria andCatNameNotBetween(String value1, String value2) {
            return notBetween(catName, value1, value2);
        }
        public MallItemcatsExample.Criteria andSortOrderIsNull() {
            return isNull(sortOrder);
        }

        public MallItemcatsExample.Criteria andSortOrderIsNotNull() {
            return isNotNull(sortOrder);
        }

        public MallItemcatsExample.Criteria andSortOrderEqualTo(Integer value) {
            return equalTo(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderNotEqualTo(Integer value) {
            return notEqualTo(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderGreaterThan(Integer value) {
            return greaterThan(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderLessThan(Integer value) {
            return lessThan(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(sortOrder, value);
        }

        public MallItemcatsExample.Criteria andSortOrderIn(List<Integer> values) {
            return in(sortOrder, values);
        }

        public MallItemcatsExample.Criteria andSortOrderNotIn(List<Integer> values) {
            return notIn(sortOrder, values);
        }

        public MallItemcatsExample.Criteria andSortOrderBetween(Integer value1, Integer value2) {
            return between(sortOrder, value1, value2);
        }

        public MallItemcatsExample.Criteria andSortOrderNotBetween(Integer value1, Integer value2) {
            return notBetween(sortOrder, value1, value2);
        }
        public MallItemcatsExample.Criteria andCidIsNull() {
            return isNull(cid);
        }

        public MallItemcatsExample.Criteria andCidIsNotNull() {
            return isNotNull(cid);
        }

        public MallItemcatsExample.Criteria andCidEqualTo(Long value) {
            return equalTo(cid, value);
        }

        public MallItemcatsExample.Criteria andCidNotEqualTo(Long value) {
            return notEqualTo(cid, value);
        }

        public MallItemcatsExample.Criteria andCidGreaterThan(Long value) {
            return greaterThan(cid, value);
        }

        public MallItemcatsExample.Criteria andCidGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(cid, value);
        }

        public MallItemcatsExample.Criteria andCidLessThan(Long value) {
            return lessThan(cid, value);
        }

        public MallItemcatsExample.Criteria andCidLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(cid, value);
        }

        public MallItemcatsExample.Criteria andCidIn(List<Long> values) {
            return in(cid, values);
        }

        public MallItemcatsExample.Criteria andCidNotIn(List<Long> values) {
            return notIn(cid, values);
        }

        public MallItemcatsExample.Criteria andCidBetween(Long value1, Long value2) {
            return between(cid, value1, value2);
        }

        public MallItemcatsExample.Criteria andCidNotBetween(Long value1, Long value2) {
            return notBetween(cid, value1, value2);
        }
        public MallItemcatsExample.Criteria andStatusIsNull() {
            return isNull(status);
        }

        public MallItemcatsExample.Criteria andStatusIsNotNull() {
            return isNotNull(status);
        }

        public MallItemcatsExample.Criteria andStatusEqualTo(Integer value) {
            return equalTo(status, value);
        }

        public MallItemcatsExample.Criteria andStatusNotEqualTo(Integer value) {
            return notEqualTo(status, value);
        }

        public MallItemcatsExample.Criteria andStatusGreaterThan(Integer value) {
            return greaterThan(status, value);
        }

        public MallItemcatsExample.Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(status, value);
        }

        public MallItemcatsExample.Criteria andStatusLessThan(Integer value) {
            return lessThan(status, value);
        }

        public MallItemcatsExample.Criteria andStatusLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(status, value);
        }

        public MallItemcatsExample.Criteria andStatusIn(List<Integer> values) {
            return in(status, values);
        }

        public MallItemcatsExample.Criteria andStatusNotIn(List<Integer> values) {
            return notIn(status, values);
        }

        public MallItemcatsExample.Criteria andStatusBetween(Integer value1, Integer value2) {
            return between(status, value1, value2);
        }

        public MallItemcatsExample.Criteria andStatusNotBetween(Integer value1, Integer value2) {
            return notBetween(status, value1, value2);
        }
    }
}